<?php

/*
|--------------------------------------------------------------------------
| Model Factories
|--------------------------------------------------------------------------
|
| Here you may define all of your model factories. Model factories give
| you a convenient way to create models for testing and seeding your
| database. Just tell the factory how a default model should look.
|
 */

// $factory->define(App\User::class, function (Faker\Generator $faker) {
//     return [
//         'name' => $faker->name,
//         'email' => $faker->safeEmail,
//         'password' => bcrypt(str_random(10)),
//         'remember_token' => str_random(10),
//     ];
// });

//
$factory->define(App\Http\Models\Admin\Admin::class, function (Faker\Generator $faker) {
    return [
        'password'   => md5('123456'),
        'status'     => 1,
        'created_at' => date('Y-m-d H:i:s'),
        'updated_at' => 0,
        'deleted_at' => 0,
    ];
});

//
$factory->define(App\Http\Models\App\App::class, function (Faker\Generator $faker) {
    return [
        'key'           => 'hello',
        'secret'        => 'world',
        'status'        => 0,
        'operator_id'   => 1,
        'operator_name' => 'admin',
        'created_at'    => date('Y-m-d H:i:s'),
        'updated_at'    => '0',
        'deleted_at'    => '0',
    ];
});

//
$factory->define(App\Http\Models\App\AppGroup::class, function (Faker\Generator $faker) {
    return [
        'status'        => 1,
        'operator_id'   => 1,
        'operator_name' => 'admin',
        'created_at'    => date('Y-m-d H:i:s'),
        'updated_at'    => '0',
        'deleted_at'    => '0',
    ];
});
//
$factory->define(App\Http\Models\App\AppAuth::class, function (Faker\Generator $faker) {
    return [
        'is_show'       => 1,
        'desc'          => 'Hello World!',
        'status'        => 1,
        'operator_id'   => 1,
        'operator_name' => 'admin',
        'created_at'    => date('Y-m-d H:i:s'),
        'updated_at'    => '0',
        'deleted_at'    => '0',
    ];
});

//
$factory->define(App\Http\Models\App\AppGroupAuthRelation::class, function (Faker\Generator $faker) {
    return [
        'operator_id'   => 1,
        'operator_name' => 'admin',
        'created_at'    => date('Y-m-d H:i:s'),
        'updated_at'    => '0',
        'deleted_at'    => '0',
    ];
});

//
$factory->define(App\Http\Models\Staff\Staff::class, function (Faker\Generator $faker) {
    return [
        'password'      => md5('123456'),
        'dept_id'       => 1,
        'post_id'       => 1,
        'status'        => 1,
        'operator_id'   => 1,
        'operator_name' => 'admin',
        'created_at'    => date('Y-m-d H:i:s'),
        'updated_at'    => 0,
        'deleted_at'    => 0,
    ];
});

//
$factory->define(App\Http\Models\Staff\StaffAppRelation::class, function (Faker\Generator $faker) {
    return [
        'operator_id'   => 1,
        'operator_name' => 'admin',
        'created_at'    => date('Y-m-d H:i:s'),
        'status'        => 1,
        'updated_at'    => 0,
        'deleted_at'    => 0,
    ];
});

//
$factory->define(App\Http\Models\Staff\StaffAppGroupRelation::class, function (Faker\Generator $faker) {
    return [
        'operator_id'   => 1,
        'operator_name' => 'admin',
        'created_at'    => date('Y-m-d H:i:s'),
        'updated_at'    => 0,
        'deleted_at'    => 0,
    ];
});
//
$factory->define(App\Http\Models\Staff\StaffDept::class, function (Faker\Generator $faker) {
    return [
        'operator_id'   => 1,
        'operator_name' => 'admin',
        'created_at'    => date('Y-m-d H:i:s'),
        'status'        => 1,
        'updated_at'    => 0,
        'deleted_at'    => 0,
    ];
});
//
$factory->define(App\Http\Models\Staff\StaffPost::class, function (Faker\Generator $faker) {
    return [
        'operator_id'   => 1,
        'operator_name' => 'admin',
        'created_at'    => date('Y-m-d H:i:s'),
        'status'        => 1,
        'updated_at'    => 0,
        'deleted_at'    => 0,
    ];
});
